<template>
  <div>
    <h3>孙子</h3>
    {{myTitle}}
  </div>
</template>

<script>
export default {
    inject:["title"],
    computed:{
        myTitle(){
            return this.title()
        }
    }
}
</script>

<style>

</style>